package com.juzipi.demo.repository;

import com.juzipi.demo.pojo.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Author juzipi
 * @Date 2021/5/3 15:26
 * @Info
 */
//参数是实体类和id类型吧
public interface StudentRepository extends MongoRepository<Student, String> {

    Student findByName(String name);

    List<Student> findByNameLike(String key);

    List<Student> queryByNameLikeAndAgeIsLike

}
